<div id="w">
	<div id="new-hot">
	<h1 style="margin-bottom:5px;"><img src="<?php echo $image_path; ?>home.gif" width="19" height="18" align="absmiddle">&nbsp;<?php echo $type_name; ?>：</h1>
	
		<ul class="section clearfix">
			<?php foreach($lists as $item): ?>
			<li class="post clearfix">
				<div class="review">
					<a href="<?php echo site_url("detail/index-".$item->rid); ?>" title="<?php echo $item->title; ?>" target="_blank"><img src="<?php echo format_thumburl($item) ; ?>" width="100px" height="70px" align="absmiddle"></a>
				</div>
				<div class="entry">
					<h2><a href="<?php echo site_url("detail/index-".$item->rid); ?>" title="<?php echo $item->title; ?>" target="_blank"><?php echo leftstring($item->title,30); ?></a></h2>
				<?php if($item->feed_type == 'share'): ?>
					<div class="desc">大小：<?php echo number_format($item->size/(1024*1024),2) ; ?> MB
				<?php else: ?>
					<div class="desc">类型：专辑（<?php echo ($item->filecount) ; ?>个文件）
				<?php endif; ?>
					&nbsp;&nbsp;&nbsp; 分享时间：<?php echo format_date('Y-m-d' ,$item->created); ?></div>
					<div class="view">
						<a title="共 <?php echo $item->view_count; ?> 次阅读" href="<?php echo site_url("detail/index-".$item->rid); ?>"><?php echo $item->view_count; ?></a>
					</div>
				</div>
			</li>
			<?php endforeach; ?>
		</ul>

	共有 <font class="red"><?php echo $totalcount ; ?></font> 条记录
	<?php if (count($pagination) > 0): ?>
	<div class="pagination">
		<ul id="pagination">
		<?php foreach($pagination as $item): ?>
			<?php if(isset($item['active'])): ?>
				<li class="active"><span><?php echo is_numeric($item['title']) ? $item['title'] : $item['title'] ?></span></li>
			<?php else: ?>
				<li><?php echo anchor($item['value'], is_numeric($item['title']) ? $item['title'] : $item['title']) ?></li>
			<?php endif?>
		<?php endforeach ?>
		</ul>
	</div>
	<?php endif ?>
	
	</div>

	<div id="new-hot-ad">
		<div id="ad1">
			<ul>
			<?php foreach($hot as $k=>$item1): ?>
				<li style="padding-top: 2px;padding-left:2px;"><a href="<?php echo site_url("detail/index-".$item1->rid); ?>" title="<?php echo $item1->title; ?>" target="_blank"><?php echo ' '.($k+1).'.'.leftstring($item1->title,14); ?></a><br /><div class="line"></div></li>
			<?php endforeach; ?>
			</ul>
		</div>
	</div>

</div>